//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package net.mingsoft.basic.biz.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import net.mingsoft.base.biz.impl.BaseBizImpl;
import net.mingsoft.base.dao.IBaseDao;
import net.mingsoft.basic.biz.IAppBiz;
import net.mingsoft.basic.dao.IAppDao;
import net.mingsoft.basic.entity.AppEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("appBiz")
@Transactional
public class AppBizImpl extends BaseBizImpl<IAppDao, AppEntity> implements IAppBiz {
    @Autowired
    private IAppDao appDao;

    public AppBizImpl() {
    }

    protected IBaseDao getDao() {
        return this.appDao;
    }

    public int countByUrl(String websiteUrl) {
        return this.appDao.countByUrl(websiteUrl);
    }

    /** @deprecated */
    @Deprecated
    public AppEntity getFirstApp() {
        return (AppEntity)this.appDao.selectList(new QueryWrapper()).get(0);
    }
}
